package com.qfedu.meidijiaju.controller;

import com.qfedu.meidijiaju.common.ResponseData;
import com.qfedu.meidijiaju.entity.StShopping;

import com.qfedu.meidijiaju.mapper.StShoppingMapper;

import com.qfedu.meidijiaju.service.StShoppingService;
import io.swagger.annotations.Api;

import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

import java.util.List;


/**
 * @author Demon
 * @date 2022年10月06日 13:36
 */
@RestController
@Api(tags = "商城主页面模糊查询")
public class StShoppingFindByNameController {

    @Resource
    private StShoppingService stShoppingService;

    @RequestMapping("/findStShoppingByNameLike")
    public ResponseData<List<StShopping>> findStShoppingByNameLike(String name) {

        return stShoppingService.findStShoppingByNameLike(name);
    }
}
